package com.lening.community.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.lening.common.base.BaseServiceImpl;
import com.lening.community.dto.CommunityDto;
import com.lening.community.mapper.CommunityMapper;
import com.lening.community.pojo.Community;
import com.lening.community.service.CommunityService;
import com.lening.community.vo.TableVo;
import org.springframework.context.annotation.Primary;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @ToDo:
 * @Author：潘万法
 * @date: 2024/6/3 17:05
 */

@Service
@Primary
public class CommunityServiceImpl extends BaseServiceImpl<CommunityMapper, Community, CommunityDto>
implements CommunityService {

    @Override
    public Page<?> page(CommunityDto communityDto) {
        return this.baseMapper.page(communityDto);
    }

    @Override
    public List<TableVo> getAllComm() {
        return this.baseMapper.getAllComm();
    }

    @Override
    public int getCount() {
        return this.baseMapper.getCount();
    }

//    @Override
//    public String add(Community community) {
//        return this.baseMapper.add(community);
//    }
}
